skeleton_animation_list


语法:

skeleton_animation_list(sprite, list);

参数 描述
sprite The sprite index of the Spine skeletal animation to get the list from.
list The ID of the DS list to populate with the animation names.


返回:

N/A(无返回值)


描述

With this function you can populate a (pre-created) ds_list with all the names of the animations included as part of the skeletal animation sprite. The names will be strings and can then be used in the other animation functions for these types of sprite.

重要!该函数在试用版(Trial License)产品中可用。


例如:

var list = ds_list_create();
skeleton_animation_list(sprite_index, list);
for (var i = 1; i < ds_list_size(list); i++;)
   {
   skeleton_animation_mix(list[| 0], list[| i], 0.5);
   }
ds_list_destroy(list);

The above code creates a ds_list of all the animation names for the sprite being used by the instance. It then loops through these and sets the mix value for all of them with the first animation to 0.5.